Passed
Push — develop ( 35967f...ff770f )
by Andrew
04:34
created

???.methods.onTableRefresh   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A 0 1 1
1
import Vue from 'vue';
2
import VueEvents from 'vue-events';
3
import Confetti from '../vue/Confetti.vue';
4
import DashboardChart from '../vue/DashboardChart.vue';
5
import DashboardTable from '../vue/DashboardTable.vue';
6
7
Vue.use(VueEvents);
8
// Create our vue instance
9
const vm = new Vue({
0 ignored issues
show
Unused Code introduced by
The constant vm seems to be never used. Consider removing it.
Loading history...
10
    el: "#cp-nav-content",
11
    components: {
12
        'confetti': Confetti,
13
        'dashboard-chart': DashboardChart,
14
        'dashboard-table': DashboardTable,
15
    },
16
    data: {
17
    },
18
    methods: {
19
        onTableRefresh (vuetable) {
20
            console.log('onTableRefresh');
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
21
            Vue.nextTick( () => vuetable.refresh());
22
        }
23
    },
24
    mounted() {
25
        this.$events.$on('refresh-table', eventData => this.onTableRefresh(eventData));
26
    },
27
});
28